package gameevent

import "xr-game-server/core/event"

const (
	// OnlyOnceAddFriendEvent 只发送一次加好友成功,好友可能删除再加
	OnlyOnceAddFriendEvent event.Type = "OnlyOnceAddFriendEvent"
)

type AddFriendEventData struct {
	//角色id
	RoleId uint64
	//对方id
	FriendId uint64
}

func NewAddFriendEventData(roleId, friendId uint64) *AddFriendEventData {
	return &AddFriendEventData{
		RoleId:   roleId,
		FriendId: friendId,
	}
}
